const mongoose = require('mongoose');

//创建文档结构对象 用来约束插入文档的结构
let AdminSchema = new mongoose.Schema({
    username: String,
    password: String,
    create_time: String,
    //是否为超级管理员
    is_super: {
        type: Boolean,
        default: false
    },
});

//创建模型对象                  集合名称   结构对象
let AdminModel = mongoose.model("admin", AdminSchema); 

//暴露对象
module.exports = AdminModel;